package com.example.baron;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class BaronMain extends Activity implements View.OnClickListener {
	Button TimeBtn01;
	Button TimeBtn02;

	TextView Timer01;
	TextView Timer02;
@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.baron_main);

		TimeBtn01 = (Button) findViewById(R.id.timer_btn01);
		TimeBtn02 = (Button) findViewById(R.id.timer_btn02);

		Timer01 = (TextView) findViewById(R.id.clockTV);
		Timer02 = (TextView) findViewById(R.id.clockTV2);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.timer_btn01:
			TimeBtn01.setVisibility(View.INVISIBLE);
			Timer01.setVisibility(View.VISIBLE);
			break;

		case R.id.timer_btn02:
			TimeBtn02.setVisibility(View.INVISIBLE);
			Timer02.setVisibility(View.VISIBLE);
			break;

		case R.id.listview:
			Intent intent = null;
			intent = new Intent(this, HeroList.class);
			startActivity(intent);
			break;

		}
	}

	@Override
	public void onClick(View v) {

	}

}
